/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.mapper;

import com.easy.core.persistence.annotation.MyBatisMapper;
import com.easy.dfcshop.entity.ProductInfo;
import com.easy.dfcshop.entity.StoreInfo;

import java.util.List;

/**
 * 	买家首页接口
 * @author waylen chi
 * @version 2018-01-11
 */
@MyBatisMapper
public interface FollowMapper {

    public Integer getFavoriteNum(Integer userId, int i);

    public Integer getFollowNum(Integer userId, int i);

    public Integer getFootStepNum(Integer userId, int i);

    public List<ProductInfo> FavoriteProduct(Integer userId, Integer pageIndex, Integer pageSize);

    public List<ProductInfo> FollowProduct(Integer userId, Integer pageIndex, Integer pageSize);

    public List<ProductInfo> FootStepProduct(Integer userId, Integer pageIndex, Integer pageSize);

    public List<StoreInfo> FavoriteStore(Integer userId, Integer pageIndex, Integer pageSize);

    public List<StoreInfo> FollowStore(Integer userId, Integer pageIndex, Integer pageSize);

    public List<StoreInfo> FootStepStore(Integer userId, Integer pageIndex, Integer pageSize);

    public void DelFavorite(Integer userId, String objectId, Integer type);

    public void AddFavorite(Integer userId, String objectId, Integer type);

    public void DelFollow(Integer userId, String objectId, Integer type);

    public void AddFollow(Integer userId, String objectId, Integer type);

    public void DelFootStep(Integer userId, String objectId, Integer type);

    public void AddFootStep(Integer userId, String objectId, Integer type);

    public List<ProductInfo> FavoriteProductOld(Integer userId, Integer pageIndex, Integer pageSize);

    public List<StoreInfo> FollowStoreOld(Integer userId, Integer pageIndex, Integer pageSize);

    public int HaveFavorite(Integer userId, String objectId, int type);

    public int HaveFollow(Integer userId, String objectId, Integer type);

    int getFollowStoreByUserStoreId(Integer userId, Integer storeId);

    Integer getFollowStoreByStoreId(Integer storeId);
}